<?php
/* @var $this BannerController */
/* @var $model Banner */

$this->breadcrumbs=array(
	'Banners'=>array('index'),
	$model->banner_id,
);

$this->menu=array(
	array('label'=>'广告列表', 'url'=>array('index')),
	array('label'=>'创建广告', 'url'=>array('create')),
	array('label'=>'更新广告', 'url'=>array('update', 'id'=>$model->banner_id)),
	array('label'=>'删除广告', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->banner_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'管理广告', 'url'=>array('admin')),
);
?>

<h1>查看广告 #<?php echo $model->banner_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'banner_id',
		'banner_imgpath',
		'banner_url',
		'banner_remark',
        array(
            'label' => '图片预览',
            'type'=>'raw',
            'value' => CHtml::image('./assets/upload/image/'.$model->banner_imgpath,
                            $model->banner_remark,
                            array('width'=>400,'height'=>120)
                       ),
        ),
	),
)); ?>
